package com.sky.service;



import com.sky.dto.OrdersCancelDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.entity.OrderPage;
import com.sky.entity.TakeoutOrder;
import com.sky.result.PageBean;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.util.HashMap;

public interface OrderService {
    PageBean searchOrder(OrdersPageQueryDTO orderPage);

    Integer countOrder(OrderPage orderPage);

    void deliveryOrder(String id);

    void confirmOrder(TakeoutOrder takeoutOrder);

    void rejectOrder(TakeoutOrder takeoutOrder);

    TakeoutOrder getDetails(String id);

    void cancelOrder(OrdersCancelDTO takeoutOrder);


    void completeOrder(String id);

    Integer countConfirned();

    Integer countToBeConfirmed();

    Integer countDeliveryInProgress();

    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    PageBean ordersHistory(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO getOrderById(Long id);

    void cancelOrderById(Long id);

    void postRepetitionById(Long id);

    void getReminderById(Long id);
}
